gtk4.git
8 years agomigration guide: Extend GtkBox child property section
Timm Bäder [Fri, 28 Apr 2017 15:11:52 +0000 (17:11 +0200)]
migration guide: Extend GtkBox child property section

Mention the removed expand and fill child properties as well.

8 years agowayland: make key event log more explicit
Olivier Fourdan [Wed, 26 Apr 2017 13:35:42 +0000 (15:35 +0200)]
wayland: make key event log more explicit

With Wayland, GDK_DEBUG=events would log key events but not explicitly
state whether the event is a key press or release, or if it's
originating from a key repeat.

Add some more verbosity to make sure these informations are logged on
key delivery when GDK_DEBUG is set.

https://bugzilla.gnome.org/show_bug.cgi?id=781767

8 years agoframe: Properly initialize clip
Timm Bäder [Fri, 28 Apr 2017 09:26:25 +0000 (11:26 +0200)]
frame: Properly initialize clip

GtkCssGadget initializes the content clip to {0, 0, 0, 0}, so we can't
just union the child clip with it.

8 years agogrid: Remove unnecessary NULL checks
Timm Bäder [Fri, 28 Apr 2017 09:25:21 +0000 (11:25 +0200)]
grid: Remove unnecessary NULL checks

The minimum and natural pointers passed to measure are never NULL and
that's the only place where we call gtk_grid_get_size_for_size.

8 years agoGtkGestureMultiPress: Remove superfluous NULL check
Timm Bäder [Thu, 27 Apr 2017 15:54:49 +0000 (17:54 +0200)]
GtkGestureMultiPress: Remove superfluous NULL check

The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.

8 years agolabel: Remove dead ternary operator
Timm Bäder [Thu, 27 Apr 2017 15:52:46 +0000 (17:52 +0200)]
label: Remove dead ternary operator

8 years agoheaderbar: Compute clip directly
Timm Bäder [Thu, 27 Apr 2017 13:45:08 +0000 (15:45 +0200)]
headerbar: Compute clip directly

8 years agoFix gdk_rectangle_union calls
Timm Bäder [Thu, 27 Apr 2017 13:29:13 +0000 (15:29 +0200)]
Fix gdk_rectangle_union calls

Turns out that the destination is the last parameter, not the first one.
This fixes the flickering in the first page of the widget-factory when
using the expander on page 2.

8 years agobutton: Compute clip directly
Timm Bäder [Thu, 27 Apr 2017 05:40:14 +0000 (07:40 +0200)]
button: Compute clip directly

8 years agofilechooserwidget: Remove always-false error case
Timm Bäder [Wed, 26 Apr 2017 11:43:30 +0000 (13:43 +0200)]
filechooserwidget: Remove always-false error case

_gtk_search_engine_new never returns NULL, it always returns a valid
GObject with at least the simple search engine initialized.

8 years agosidebarrow: Remove useless size group
Timm Bäder [Wed, 26 Apr 2017 09:37:58 +0000 (11:37 +0200)]
sidebarrow: Remove useless size group

Nice try, but size groups don't work with invisible widgets anyway.
Invisible widgets request 0×0.

8 years agogdk: Relicense translate_wm_button_layout_to_gtk()
Florian Müllner [Sat, 22 Apr 2017 17:50:11 +0000 (19:50 +0200)]
gdk: Relicense translate_wm_button_layout_to_gtk()

It is generally a good idea to license individual files under the
same terms as the project license (in particular when the mismatch
boils down to having copied the wrong license header), so relicense
the code under the LGPL.

https://bugzilla.gnome.org/show_bug.cgi?id=781422

8 years agoUpdate Polish translation
Piotr Drąg [Wed, 26 Apr 2017 17:44:06 +0000 (19:44 +0200)]
Update Polish translation

8 years agogsk: Mark finalize() implementation as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:28:14 +0000 (17:28 +0100)]
gsk: Mark finalize() implementation as static

8 years agogsk: Mark internal symbol as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:27:24 +0000 (17:27 +0100)]
gsk: Mark internal symbol as static

Nothing uses this function outside of GskVulkaneRenderPass.

8 years agogsk: Mark internal symbols as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:23:12 +0000 (17:23 +0100)]
gsk: Mark internal symbols as static

These symbols are not used anywhere outside of GskVulkanImage.

8 years agogsk: Mark private symbol as static
Emmanuele Bassi [Wed, 26 Apr 2017 16:21:07 +0000 (17:21 +0100)]
gsk: Mark private symbol as static

The ellipsis_contains_point() function is not used anywhere else.

8 years agoUpdate Russian translation
Stas Solovey [Wed, 26 Apr 2017 14:44:34 +0000 (14:44 +0000)]
Update Russian translation

(cherry picked from commit edf00914e531f36d611b613b22b8d6ccb72e893a)

8 years agoScale: Fix documentation of digits per last revert
Daniel Boles [Wed, 26 Apr 2017 11:18:12 +0000 (12:18 +0100)]
Scale: Fix documentation of digits per last revert

Revert doc changes that were for the behavioural change just reverted.

Add a clarifying note that, under the original behaviour, :digits only
rounds the Adjustment if :draw-value is TRUE at the time of the change.

https://bugzilla.gnome.org/show_bug.cgi?id=781605
https://bugzilla.gnome.org/show_bug.cgi?id=358970

8 years agoRevert "Scale: Always sync ::digits to Range::round-digits"
Matthias Clasen [Wed, 26 Apr 2017 10:18:09 +0000 (06:18 -0400)]
Revert "Scale: Always sync ::digits to Range::round-digits"

This reverts commit 4a6bd134bdc192b4830a1c6228e27332d4629418.

This change in behavior broke various things.

https://bugzilla.gnome.org/show_bug.cgi?id=781605

8 years agoGskRoundedRect: Include private header file
Timm Bäder [Wed, 26 Apr 2017 09:07:40 +0000 (11:07 +0200)]
GskRoundedRect: Include private header file

So we don't have implementations without previous prototypes.

8 years agoGskRenderNode: Fix set_scaling_filters function name
Timm Bäder [Wed, 26 Apr 2017 09:06:55 +0000 (11:06 +0200)]
GskRenderNode: Fix set_scaling_filters function name

The implementation sed _filters while the prototype used _filter.

8 years agoGskRenderNode: add missing prototype
Timm Bäder [Wed, 26 Apr 2017 09:06:32 +0000 (11:06 +0200)]
GskRenderNode: add missing prototype

8 years agoreftests: Remove reference to deleted files
Timm Bäder [Tue, 25 Apr 2017 18:55:56 +0000 (20:55 +0200)]
reftests: Remove reference to deleted files

8 years agotestdnd2: Don't pass a toplevel to gtk_drag_set_icon_widget
Timm Bäder [Tue, 25 Apr 2017 16:47:42 +0000 (18:47 +0200)]
testdnd2: Don't pass a toplevel to gtk_drag_set_icon_widget

8 years agolabel: Remove angle property
Timm Bäder [Tue, 25 Apr 2017 15:26:49 +0000 (17:26 +0200)]
label: Remove angle property

8 years agolabel: Move if statement where it makes sense
Timm Bäder [Tue, 25 Apr 2017 13:45:37 +0000 (15:45 +0200)]
label: Move if statement where it makes sense

In the else branch of the if statement before this one, we're assigning
*smallest = *widest anyway, so this if statement is never true. Move it
to the if block before instead, where it can apply.

8 years agolabel: Remove useless if statements
Timm Bäder [Tue, 25 Apr 2017 13:43:10 +0000 (15:43 +0200)]
label: Remove useless if statements

We never pass nullable pointers into get_size_for_allocation.

8 years agolabel: Remove useless if statement
Timm Bäder [Tue, 25 Apr 2017 13:39:46 +0000 (15:39 +0200)]
label: Remove useless if statement

The if before this one already makes sure priv->wrap is TRUE.

8 years agogtkmain: Fix code example
Timm Bäder [Tue, 25 Apr 2017 13:22:52 +0000 (15:22 +0200)]
gtkmain: Fix code example

gtk_init doesn't take parameters anymore

8 years agolabel: Don't use gtk_widget_set_simple_clip
Timm Bäder [Tue, 25 Apr 2017 09:57:12 +0000 (11:57 +0200)]
label: Don't use gtk_widget_set_simple_clip

The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.

8 years agoframe: Compute clip directly
Timm Bäder [Tue, 25 Apr 2017 06:11:51 +0000 (08:11 +0200)]
frame: Compute clip directly

8 years agolistbox: Compute clips directly
Timm Bäder [Mon, 24 Apr 2017 21:11:15 +0000 (23:11 +0200)]
listbox: Compute clips directly

8 years agogtkwidget: Queue a resize on the parent when unparenting
Timm Bäder [Mon, 24 Apr 2017 17:07:59 +0000 (19:07 +0200)]
gtkwidget: Queue a resize on the parent when unparenting

gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same

8 years agowidget: Fix set_parent/unparent docs to not mention GtkContainer
Timm Bäder [Mon, 24 Apr 2017 17:07:15 +0000 (19:07 +0200)]
widget: Fix set_parent/unparent docs to not mention GtkContainer

They can both be used by non-container widgets these days.

8 years agogrid: Compute clip directly
Timm Bäder [Mon, 24 Apr 2017 16:23:53 +0000 (18:23 +0200)]
grid: Compute clip directly

Instead of iterating over the children again in
gtk_container_get_children_clip

8 years agocontainer: Use gtk_container_forall less
Timm Bäder [Mon, 24 Apr 2017 16:12:03 +0000 (18:12 +0200)]
container: Use gtk_container_forall less

Just iterate over the child widgets directly and produce a much nicer
stack trace when debugging.

8 years agobox: Compute clips directly
Timm Bäder [Sun, 23 Apr 2017 14:32:28 +0000 (16:32 +0200)]
box: Compute clips directly

Instead of using _gtk_widget_set_simple_clip *and*
gtk_container_get_children_clip

8 years agotestsuite: Add widget ordering test case
Timm Bäder [Sun, 23 Apr 2017 12:36:36 +0000 (14:36 +0200)]
testsuite: Add widget ordering test case

8 years agobox: Remove center child
Timm Bäder [Sun, 23 Apr 2017 07:30:17 +0000 (09:30 +0200)]
box: Remove center child

8 years agocontainer: Remove include_internals parameter from forall
Timm Bäder [Sat, 22 Apr 2017 20:16:27 +0000 (22:16 +0200)]
container: Remove include_internals parameter from forall

with include_internals=TRUE, this is the same as the (still private)
gtk_widget_forall, or just using the children/sibling accessors in a
loop.

8 years agoactionbar: Add explicit center widget
Timm Bäder [Sat, 22 Apr 2017 18:18:17 +0000 (20:18 +0200)]
actionbar: Add explicit center widget

The center widget in GtkBox was only introduced to use it in
GtkActionBar. However, the implementation there is much more complex
than it needs to be, so move the center widget into GtkActionBar instead
and later remove it from GtkBox.

8 years agobox: Remove fill child property
Timm Bäder [Fri, 21 Apr 2017 20:34:36 +0000 (22:34 +0200)]
box: Remove fill child property

GtkWidget:halign and GtkWidget:valign are sufficient

8 years agobox: Remove expand child property
Timm Bäder [Fri, 21 Apr 2017 16:59:59 +0000 (18:59 +0200)]
box: Remove expand child property

GtkWidget already has hexpand/vexpand properties.

8 years agoexpander: Use widgets for title box and arrow
Timm Bäder [Fri, 7 Apr 2017 18:14:26 +0000 (20:14 +0200)]
expander: Use widgets for title box and arrow

8 years agowindow: Make sure the decoration node stays at the beginning
Timm Bäder [Fri, 7 Apr 2017 18:13:42 +0000 (20:13 +0200)]
window: Make sure the decoration node stays at the beginning

Otherwise, the gtk_widget_set_parent call might add the widget node of
the child before the decoration node.

8 years agolevelbar: Use widgets for all blocks
Timm Bäder [Fri, 7 Apr 2017 08:01:23 +0000 (10:01 +0200)]
levelbar: Use widgets for all blocks

This replaces all internal gadgets with widgets.

Remaining problem: "block" nodes have a min-width of 32px in Adwaita,
but when allocated in continuous mode, the levelbar doesn't care and
underallocates them.

8 years agoprogressbar: Use widgets for all subgadgets
Timm Bäder [Thu, 6 Apr 2017 17:22:14 +0000 (19:22 +0200)]
progressbar: Use widgets for all subgadgets

A GtkLabel for the possible text node and two GtkGizmos for the
trough/progress gadgets.

8 years agoAdd GtkGizmo
Timm Bäder [Thu, 6 Apr 2017 17:17:29 +0000 (19:17 +0200)]
Add GtkGizmo

GtkGizmo is the easiest possible widget to implement. It does nothing
except give its creator a way to control measure/size-allocate/snapshot,
so it can be used in a variety of use cases.

8 years agooverlay: Ensure proper child widget order
Timm Bäder [Sun, 23 Apr 2017 06:39:15 +0000 (08:39 +0200)]
overlay: Ensure proper child widget order

Make sure the main widget stays below all the overlay children.

8 years agotreeview: insert the column button css node in the right place
Timm Bäder [Mon, 24 Apr 2017 19:47:24 +0000 (21:47 +0200)]
treeview: insert the column button css node in the right place

Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.

8 years agowidget: Add gtk_widget_insert_before/after
Timm Bäder [Wed, 5 Apr 2017 17:57:11 +0000 (19:57 +0200)]
widget: Add gtk_widget_insert_before/after

To insert a widget into the widget tree before or after a child widget
of the soon-to-be parent.

8 years agogdk: Add 3.92 version macros
Timm Bäder [Sun, 9 Apr 2017 09:54:02 +0000 (11:54 +0200)]
gdk: Add 3.92 version macros

8 years agoBump version to 3.91.0
Timm Bäder [Tue, 25 Apr 2017 18:16:59 +0000 (20:16 +0200)]
Bump version to 3.91.0

So we can use GDK_AVAILABLE_IN_3_92 without getting warnings

8 years agolistbox: Properly remove placeholders
Timm Bäder [Fri, 7 Apr 2017 17:02:35 +0000 (19:02 +0200)]
listbox: Properly remove placeholders

8 years agowidget-factory: Add dummy listbox placeholder
Timm Bäder [Fri, 7 Apr 2017 16:57:15 +0000 (18:57 +0200)]
widget-factory: Add dummy listbox placeholder

It doesn't do anything and isn't visible anyway, but it tests that
adding and removing placeholders works

8 years agoProgressBar: Update node summary per last commit
Daniel Boles [Tue, 25 Apr 2017 09:57:55 +0000 (10:57 +0100)]
ProgressBar: Update node summary per last commit

The node named "progress" is a child of the node named "trough".

8 years agoprogressbar: Fix position of text node in CSS docs
Timm Bäder [Sat, 22 Apr 2017 04:35:54 +0000 (06:35 +0200)]
progressbar: Fix position of text node in CSS docs

The text node has always been a child node of the progressbar node, not
the trough node, but the docs claimed otherwise.

8 years agospinbutton: Add undershoot nodes to CSS docs
Timm Bäder [Mon, 24 Apr 2017 14:22:32 +0000 (16:22 +0200)]
spinbutton: Add undershoot nodes to CSS docs

8 years agospinbutton: Remove an unused define
Timm Bäder [Mon, 24 Apr 2017 14:22:26 +0000 (16:22 +0200)]
spinbutton: Remove an unused define

8 years agowindow: Expand CSS node docs
Timm Bäder [Mon, 24 Apr 2017 13:12:23 +0000 (15:12 +0200)]
window: Expand CSS node docs

8 years agofilechooserbutton: Show/hide appropriate child
Timm Bäder [Fri, 21 Apr 2017 13:37:37 +0000 (15:37 +0200)]
filechooserbutton: Show/hide appropriate child

8 years agopaned: Fix typo
Timm Bäder [Mon, 24 Apr 2017 10:00:32 +0000 (12:00 +0200)]
paned: Fix typo

8 years agotestboxcss: Fix custom CSS
Timm Bäder [Sat, 22 Apr 2017 10:16:03 +0000 (12:16 +0200)]
testboxcss: Fix custom CSS

remove engine: parameter and add units to values

8 years agogtk4-sections: Add missing GtkWidget child/sibling accessors
Timm Bäder [Wed, 5 Apr 2017 17:58:35 +0000 (19:58 +0200)]
gtk4-sections: Add missing GtkWidget child/sibling accessors

8 years agolevelbar: Remove unused define
Timm Bäder [Mon, 3 Apr 2017 13:56:36 +0000 (15:56 +0200)]
levelbar: Remove unused define

8 years agotestlist3: Handle dropping a row onto itself
Matthias Clasen [Sun, 23 Apr 2017 01:37:55 +0000 (21:37 -0400)]
testlist3: Handle dropping a row onto itself

Instead of spewing criticals, we should handle this
gracefully by doing nothing.

8 years agogtkplacesview.ui: Remove translatable from server label helper
Carlos Soriano [Sat, 22 Apr 2017 19:53:45 +0000 (21:53 +0200)]
gtkplacesview.ui: Remove translatable from server label helper

Translating it seems pointless if we can use a non-translatable example
such as gnome.org instead of foo.example.com.

This will help to make changes in here without breaking string freeze.

https://bugzilla.gnome.org/show_bug.cgi?id=781622

8 years agoFix the build
Matthias Clasen [Sat, 22 Apr 2017 15:30:33 +0000 (11:30 -0400)]
Fix the build

8 years agoRefine the listbox dnd example
Matthias Clasen [Sat, 22 Apr 2017 12:03:00 +0000 (08:03 -0400)]
Refine the listbox dnd example

Add a drag handle, and demonstrate broken offsets.

8 years agogtkplacesview: Fix unmounted open in tab/window
Carlos Soriano [Fri, 21 Apr 2017 15:58:30 +0000 (17:58 +0200)]
gtkplacesview: Fix unmounted open in tab/window

We were send the "open-location" signal without mounting first the
location if necessary, making the open in tab/window context menu not
work for those.

This patch makes sure we mount the location before emitting the signal.

https://bugzilla.gnome.org/show_bug.cgi?id=771269

8 years agoFix a typo
Matthias Clasen [Fri, 21 Apr 2017 22:27:43 +0000 (18:27 -0400)]
Fix a typo

8 years agoImplement dnd for list box rows in an example
Matthias Clasen [Fri, 21 Apr 2017 21:02:05 +0000 (17:02 -0400)]
Implement dnd for list box rows in an example

This shows very basic DND of list box rows.

8 years agoReplace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.
John Ralls [Mon, 3 Apr 2017 01:16:59 +0000 (18:16 -0700)]
Replace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.

userSpaceScaleFactor is not compatible with high-resolution (aka HiDPI)
displays.

8 years agoplacesview: fix testsuite
Georges Basile Stavracas Neto [Tue, 11 Apr 2017 19:46:14 +0000 (16:46 -0300)]
placesview: fix testsuite

Because the network monitor can perfectly be NULL,
the tests were failing on that for GtkPlacesView
always tries to disconnect this handler.

Fix that by only disconnecting the handler when
the network monitor exists.

https://bugzilla.gnome.org/show_bug.cgi?id=781195

8 years agoplaces-view: monitor network
Georges Basile Stavracas Neto [Mon, 10 Apr 2017 21:59:33 +0000 (18:59 -0300)]
places-view: monitor network

GtkPlacesView exposes local access points and network
shares transparently by using the 'network:///' URI,
which is handled by GIO.

Currently, however, it doesn't monitor the network
for new available points, such as computers that just
join the network. It may happen too that the backend
won't find all the networks before the network enumeration
finishes.

Fix that by keeping a file monitor inspecting the network
uri, and update the places list when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=781162

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 21:29:53 +0000 (21:29 +0000)]
Update Croatian translation

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 21:01:06 +0000 (21:01 +0000)]
Update Croatian translation

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 20:43:09 +0000 (20:43 +0000)]
Update Croatian translation

(cherry picked from commit 6e87915b0550edc2556f764af86f6a212617bfb2)

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 20:39:13 +0000 (20:39 +0000)]
Update Croatian translation

(cherry picked from commit 4f3ff059430f5b120f3ca88e19a8c94205ef8d4a)

9 years agoUpdate Greek translation
Tom Tryfonidis [Sat, 8 Apr 2017 16:36:31 +0000 (16:36 +0000)]
Update Greek translation

9 years agogtkheaderbar: add style classes to all title buttons
Alberts Muktupāvels [Thu, 6 Apr 2017 08:16:12 +0000 (11:16 +0300)]
gtkheaderbar: add style classes to all title buttons

Commit b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style
classes for minimize, maximize and close buttons. Add similar classes
also to icon and menu buttons.

https://bugzilla.gnome.org/show_bug.cgi?id=780944

9 years agoflowbox: don’t try to focus or draw NULL widgets
Matthias Clasen [Thu, 6 Apr 2017 00:10:09 +0000 (20:10 -0400)]
flowbox: don’t try to focus or draw NULL widgets

Rubberbanding over an empty area results in warnings, due to the code
trying to focus and queue a null pointer for drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=780734

9 years agodocs: Use https for more links
Jeremy Bicha [Mon, 3 Apr 2017 17:06:51 +0000 (13:06 -0400)]
docs: Use https for more links

https://bugzilla.gnome.org/show_bug.cgi?id=780878

9 years agodocs: Point links to correct versions
Jeremy Bicha [Mon, 3 Apr 2017 16:27:50 +0000 (12:27 -0400)]
docs: Point links to correct versions

https://bugzilla.gnome.org/show_bug.cgi?id=780878

9 years agomir: clean up an ugly function
William Hua [Mon, 3 Apr 2017 16:59:50 +0000 (12:59 -0400)]
mir: clean up an ugly function

9 years agoUse the newly added g_object_new_with_properties()
Emmanuele Bassi [Sun, 2 Apr 2017 16:27:44 +0000 (17:27 +0100)]
Use the newly added g_object_new_with_properties()

Instead of the deprecated g_object_newv().

This requires some internal surgery to create our own vector of names
and values, but it does not functionally change anything.

9 years agoBump up the required version of GLib
Emmanuele Bassi [Sun, 2 Apr 2017 16:25:46 +0000 (17:25 +0100)]
Bump up the required version of GLib

GLib 2.53 deprecated g_object_newv() and GParameter. If we want to stop
using those types without resorting to pretty convoluted pre-processor
dancing, we will need to bump up the dependency inside GTK+.

9 years agoIgnore deprecation warnings for g_object_newv()
Emmanuele Bassi [Sun, 2 Apr 2017 15:36:07 +0000 (16:36 +0100)]
Ignore deprecation warnings for g_object_newv()

GLib has deprecated GParameter and g_object_newv(); until we switch to
the new g_object_new_with_properties() API, and bump GLib required
version, we should simply ignore the compiler warnings.

9 years agofilechooserwidget: Remove useless gtk_widget_show call
Timm Bäder [Sun, 2 Apr 2017 16:24:17 +0000 (18:24 +0200)]
filechooserwidget: Remove useless gtk_widget_show call

9 years agostack combo: Inherit from GtkWidget
Timm Bäder [Sat, 1 Apr 2017 18:01:04 +0000 (20:01 +0200)]
stack combo: Inherit from GtkWidget

9 years agoquartz: code cleanup
Tom Schoonjans [Tue, 28 Feb 2017 21:54:46 +0000 (21:54 +0000)]
quartz: code cleanup

removed unused static functions, unused class variables and a large
comment section that was copied over from gdkdisplay-x11.h

https://bugzilla.gnome.org/show_bug.cgi?id=779184

9 years agoquartz: add support for Gtk+4
Tom Schoonjans [Mon, 27 Feb 2017 21:38:46 +0000 (21:38 +0000)]
quartz: add support for Gtk+4

The addition of GdkMonitor broke the quartz backend. This patch restores
that support by adding a new class GdkQuartzMonitor, and by modifying
the existing classes GdkQuartzDisplay and GdkQuartzScreen where
necessary.

It should be noted that this patch is essentially a refactor as no new
functionality that will impact the user has been added or removed.

https://bugzilla.gnome.org/show_bug.cgi?id=779184

9 years agoAvoid a compiler warning
Matthias Clasen [Sat, 1 Apr 2017 15:51:51 +0000 (11:51 -0400)]
Avoid a compiler warning

9 years agobuild: Fix sassc detection
Emmanuele Bassi [Sat, 1 Apr 2017 15:39:21 +0000 (16:39 +0100)]
build: Fix sassc detection

9 years agoRebuild CSS on all SCSS file changes
Emmanuele Bassi [Sat, 1 Apr 2017 15:10:18 +0000 (16:10 +0100)]
Rebuild CSS on all SCSS file changes

Adwaita and HighContrast CSS should be rebuild every time one of their
dependent files change, not just the main entry point.

https://bugzilla.gnome.org/show_bug.cgi?id=780041

9 years agomir: set application name when creating connection
William Hua [Sat, 1 Apr 2017 14:04:50 +0000 (10:04 -0400)]
mir: set application name when creating connection

9 years agoOptionally depend on sassc to generate the theme CSS
Emmanuele Bassi [Tue, 14 Mar 2017 16:35:58 +0000 (16:35 +0000)]
Optionally depend on sassc to generate the theme CSS

Instead of using Ruby/Sass to generate the CSS from SCSS files, we can
use the faster and more lightweight libsass/sassc binary.

We can keep the CSS files in Git to make it easier to dist GTK+, but we
can add rules to ensure they get rebuilt if the source SCSS changes.

https://bugzilla.gnome.org/show_bug.cgi?id=780041

9 years agogsk: Add color shaders to resources
Timm Bäder [Sat, 1 Apr 2017 14:15:10 +0000 (16:15 +0200)]
gsk: Add color shaders to resources

9 years agodnd: Remove unnecessary non-toplevel GtkWindow in set_icon_surface
Timm Bäder [Sat, 1 Apr 2017 06:30:20 +0000 (08:30 +0200)]
dnd: Remove unnecessary non-toplevel GtkWindow in set_icon_surface

Instead of creating a GtkWindow, connecting to ::draw and drawing the
surface in there, then adding that window to another GtkWindow... just
use a GtkImage. This also gets rid of a bunch of utility functions used
only in gtk_drag_set_icon_surface.